//4.4 - The Snail Racing Game - Dirk Henkemans //and Mark Lee - Prima Tech #include #include using namespace std; //function declarations int main(void); int race(int, int); void race(void); int menu(void); int placeBet(int); void ini(void); //variables int money = 200; //the main function int main(void) { ini(); int userResponse; cout<< "Welcome to the snail races!!!" <> userResponse; } while(userResponse < 0 && userResponse > 4); return userResponse; } //decides how much a person will bet on the snail int placeBet(int userResponse) { int betAmount; cout<< "Snail " << userResponse << " is a good choice!" << endl; cout<< "How much would you like to bet on your snail " << userResponse <<"?"; cin >> betAmount; return betAmount; } //if they are just watching the race void race (void) { race(0, 0); } //if they are betting money int race (int money, int userResponse) { //stores the random number int winner = rand() % 3 + 1; cout<< "And the snails are off" << endl << "Look at them GO!!!" << endl << "The winner is snail " << winner; if(winner == userResponse) { cout<< " You Win!" <